package site.wanjiahao;

import site.wanjiahao.stack.MyStack;

import java.util.LinkedList;

public class Main {

    public static void main(String[] args) {
        MyStack obj = new MyStack();
        obj.push(1);
        obj.push(2);
        obj.push(3);
        int param_2 = obj.pop();
        System.out.println(param_2);
        int param_3 = obj.top();
        System.out.println(param_3);
        boolean param_4 = obj.empty();
        System.out.println(param_4);
    }

    private static void extracted() {
        Queue<Object> queue = new Queue<>();

        queue.enQueue(1);
        queue.enQueue(2);
        queue.enQueue(3);
        queue.enQueue(4);

        System.out.println(queue.deQueue());

        queue.enQueue(5);
        queue.enQueue(6);

        while (!queue.isEmpty()) {
            System.out.println(queue.deQueue());
        }
    }

}
